
import 'package:lx_widgets_library/enum/language_enum.dart';
import 'ch.dart';
import 'en.dart';
import 'language_base.dart';

class AppLanguageUtil {
  static LanguageType _languageType = LanguageType.cn;

  static setLanguage({required LanguageType type}) {
    _languageType = type;
  }

  static AppLanguage get to {
    switch (_languageType) {
      case LanguageType.cn:
        return LanguageCN();
      default:
        return LanguageEN();
    }
  }
}
